package com.nameless.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nameless.dao.CarInsuranceMapper;
import com.nameless.entity.CarInsurance;
import com.nameless.service.CarInsuranceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author : 陈灰灰
 * @Date: 2023/03/06/9:18
 * @Description:
 */
@Service
public class CarInsuranceServiceImpl extends ServiceImpl<CarInsuranceMapper, CarInsurance> implements CarInsuranceService {
    @Resource
    private CarInsuranceMapper carInsuranceMapper;
    @Override
    public CarInsurance getCarInsuranceByCarId(Integer carId) {
        return carInsuranceMapper.getCarInsuranceByCarId(carId);
    }
}
